#ifndef _CPxTIME_TYPEDEF_
#define _CPxTIME_TYPEDEF_

#ifndef IEC_ENDIAN
#error please include "iec10x.h" first
#endif

// 时标
typedef struct CP16Time2a {
	unsigned char ms[2];
}
CP16Time2a_t;

typedef struct CP24Time2a {
	unsigned char ms[2];
	unsigned char min;
}
CP24Time2a_t;

typedef struct CP56Time2a  { 
	unsigned char ms[2]; /// 低位在前
	unsigned char min;
	unsigned char hour;
	struct {
		#if (IEC_ENDIAN  == IEC_LITTLE_ENDIAN) //小端 CPU
			unsigned char date    : 5 ;
			unsigned char weekday : 3 ;
		#else 
			unsigned char weekday : 3 ;
			unsigned char date    : 5 ;
		#endif
	}day;
	unsigned char month;
	unsigned char year;
}
CP56Time2a_t ;

#endif
